﻿using AiBLSmartEdu.Module.SafeResponse.Middleware.Configurations;
using FrameworkCore.Modules.Startups;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace AiBLSmartEdu.Module.SafeResponse.Middleware
{
    public class AiBLSmartEduStartup : IAiBLSmartEduStartup
    {
        public int Order => 700;

        public void Configure(IApplicationBuilder application)
        {
            //application.UseMiddleware<SafeResponseMiddleware>();
        }

        public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
        {
            var config = ConfigurationsExtensions.AddJsonFile("safesettings");
            services.Configure<SecretSettings>(config.GetSection(SecretSettings.Key));
        }
    }
}
